package com.ruoyi.service.impl;

import java.util.List;

import com.ruoyi.domain.AbilitySubscribe;
import com.ruoyi.mapper.AbilitySubscribeMapper;
import com.ruoyi.service.IAbilitySubscribeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 用户订阅Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-19
 */
@Service
public class AbilitySubscribeServiceImpl implements IAbilitySubscribeService
{
    @Autowired
    private AbilitySubscribeMapper abilitySubscribeMapper;

    /**
     * 查询用户订阅
     * 
     * @param ID 用户订阅主键
     * @return 用户订阅
     */
    @Override
    public AbilitySubscribe selectAbilitySubscribeByID(Long ID)
    {
        return abilitySubscribeMapper.selectAbilitySubscribeByID(ID);
    }

    /**
     * 查询用户订阅列表
     * 
     * @param abilitySubscribe 用户订阅
     * @return 用户订阅
     */
    @Override
    public List<AbilitySubscribe> selectAbilitySubscribeList(AbilitySubscribe abilitySubscribe)
    {
        return abilitySubscribeMapper.selectAbilitySubscribeList(abilitySubscribe);
    }

    /**
     * 新增用户订阅
     * 
     * @param abilitySubscribe 用户订阅
     * @return 结果
     */
    @Override
    public int insertAbilitySubscribe(AbilitySubscribe abilitySubscribe)
    {
        return abilitySubscribeMapper.insertAbilitySubscribe(abilitySubscribe);
    }

    /**
     * 修改用户订阅
     * 
     * @param abilitySubscribe 用户订阅
     * @return 结果
     */
    @Override
    public int updateAbilitySubscribe(AbilitySubscribe abilitySubscribe)
    {
        return abilitySubscribeMapper.updateAbilitySubscribe(abilitySubscribe);
    }

    /**
     * 批量删除用户订阅
     * 
     * @param IDs 需要删除的用户订阅主键
     * @return 结果
     */
    @Override
    public int deleteAbilitySubscribeByIDs(Long[] IDs)
    {
        return abilitySubscribeMapper.deleteAbilitySubscribeByIDs(IDs);
    }

    /**
     * 删除用户订阅信息
     * 
     * @param ID 用户订阅主键
     * @return 结果
     */
    @Override
    public int deleteAbilitySubscribeByID(Long ID)
    {
        return abilitySubscribeMapper.deleteAbilitySubscribeByID(ID);
    }
}
